/**
 * output package name
 */
package com.kingdee.eas.custom.quality;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.StringEnum;

/**
 * output class name
 */
public class QualityState extends StringEnum
{
    public static final String GOOD_VALUE = "10";
    public static final String COMMON_VALUE = "20";
    public static final String BAD_VALUE = "30";
    public static final String SERIOUS_VALUE = "40";

    public static final QualityState good = new QualityState("good", GOOD_VALUE);
    public static final QualityState common = new QualityState("common", COMMON_VALUE);
    public static final QualityState bad = new QualityState("bad", BAD_VALUE);
    public static final QualityState serious = new QualityState("serious", SERIOUS_VALUE);

    /**
     * construct function
     * @param String qualityState
     */
    private QualityState(String name, String qualityState)
    {
        super(name, qualityState);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static QualityState getEnum(String qualityState)
    {
        return (QualityState)getEnum(QualityState.class, qualityState);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(QualityState.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(QualityState.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(QualityState.class);
    }
}